package com.nxy.service;

import com.nxy.dao.ReplyDao;
import com.nxy.entity.Reply;

import java.util.List;

public class ReplyService {
    ReplyDao rd = new ReplyDao();
    public boolean addReply(Reply r){
        return rd.addReply(r)>0?true:false;
    }

    public List<Reply> queryReply(){
        return rd.queryReply();
    }

    public Reply queryReplyByRid(String id){
        return rd.queryReplyByRid(id);
    }

    public boolean deleteReply(String id){
        return rd.deleteReply(id)>0?true:false;
    }

    public boolean updateReply(Reply r){
        return rd.updateReply(r)>0?true:false;
    }
}
